package com.yxw.live_vod_boot.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author xiexuxin
 * @date 2023-12-10
 */
@Data
@ApiModel(value = "OrderAddDTO", description = "订单新增DTO")
public class OrderAddDTO implements Serializable {

    @NotNull(message = "用户id不能为空")
    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("橱窗商品ID")
    private Long productId;

    @ApiModelProperty("直播申请ID")
    private String applyId;

    @ApiModelProperty("直播商品ID")
    private Long activityProductId;

    @ApiModelProperty("点播视频id")
    private Long videoId;

    @NotNull(message = "商品数量不能为空")
    @ApiModelProperty("商品数量")
    private Integer productQuantity;

    @NotNull(message = "订单来源不能为空")
    @ApiModelProperty("订单来源 0:直播间 1:点播 2:橱窗")
    private Integer orderSource;

}
